home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 13 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  31 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.sprintlink.net!news1!news
  3. From: John K Gotwals <gotwals@holli.com>
  4. Subject: Re: two tricky questions
  5. X-Nntp-Posting-Host: laf-ts0-06.holli.com
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <30E707C7.5D8F@holli.com>
  8. Sender: news@iquest.net (News Admin)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: WL Computer Systems
  11. References: <4c4tbn$ga9@sunburst.ccs.yorku.ca> <4c5dn1$j5r@news.xmission.com> <4c6v9u$jdl@news.xmission.com>
  12. Mime-Version: 1.0
  13. Date: Sun, 31 Dec 1995 21:59:35 GMT
  14. X-Mailer: Mozilla 2.0b4 (WinNT; I)
  15.  
  16. Todd Knarr wrote:
  17. >    <snip>
  18. >
  19. > In general, I've found that classes that allocate dynamic memory and use
  20. > pointers to it also need non-trivial copy constructors and copy assignment
  21. > operators to avoid exactly this sort of problem.
  22.  
  23. In addition to the two items you named, a destructor is also needed.
  24. ** John
  25.  
  26. -- 
  27.    I wouldn't want to belong to any club that would accept me as a          
  28.    member.                                            Groucho Marx
  29.